package com.library.mapper;

import com.library.entity.OaApprove;
import com.library.entity.OaDepartment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ido
 * @since 2024-12-14
 */
public interface OaDepartmentMapper
        extends BaseMapper<OaDepartment> {

    List<OaDepartment> listByQuery(OaDepartment query);
    void add(OaDepartment oaDepartment);
    void deleteByIdNotNull(OaDepartment oaDepartment);
    OaDepartment selectByPrimaryKey(Long id);

    int insert(OaDepartment record);

    int insertSelective(OaDepartment record);

    int updateByPrimaryKeySelective(OaDepartment record);

    int updateByPrimaryKey(OaDepartment record);

}
